function mynew(func, ...args) {
  const obj = {}
  obj.__proto__ = func.prototype
  let result = func.apply(obj, args)
  console.log("*************************")
  console.log(result instanceof Object)
  return result instanceof Object ? result : obj
}
function Person(name, age) {
  this.name = name;
  this.age = age;

  return "123"
}
let p = mynew(Person, "huihui", 123)